package 多线程.线程池;

import java.util.concurrent.*;

/**
 * Description
 *
 * @Author: Heiffeng
 * @Date: 2021/12/18 15:53
 */
public class Executors探究 {

    public void newFixedThreadPool(){
        Executors.newFixedThreadPool(1);
    }

    public void newCachedThreadPool(){
        Executors.newCachedThreadPool();
    }

    public void newSingleThreadExecutor(){
        Executors.newSingleThreadExecutor();
    }

    public void newScheduledThreadPool(){
        Executors.newScheduledThreadPool(1);
    }

    public void newSingleThreadScheduledExecutor(){
        Executors.newSingleThreadScheduledExecutor();
    }

    public void newWorkStealingPool(){
        Executors.newWorkStealingPool();
    }

}
